<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		#box{
			width: 200px;
			height: 200px;
			background: red;
		}
 		#add{
			width: 200px;
			height: 200px;
			background: blue;
 		}

		.bbc{
			width: 200px;
			height: 200px;
			background: yellow;
		}
	</style>
</head>
<body>
	<div id="box"></div>
	<div id="add"></div>
	<div class="bbc" id="bbc"></div>
	<script type="text/javascript">
/*	box=document.getElementById("box");*/
	/*add=document.getElementById("add");*/
	add.onclick = function (){
		bbc.appendChild(add);
	}


	</script>
</body>
</html>